import request from '@/utils/request'
import type { listFormData } from './type'


//列表
export const getPlayList = (data: any) => request.post<any, any>('/client/refund/index', data)

//获取退款统计数据
export const getDashboard = (data: any) => request.post<any, any>('/client/refund/dashboard', data)

//发起审批条件校验
export const checkCondition = (data: any) => request.post<any, any>('/client/approval/check_condition', data)

//获取转账银行卡信息
export const getTkBank = (data: any) => request.post<any, any>('/client/bank/get_tk_bank', data)

//获取对公账户列表
export const getPublicBank = (data: any) => request.post<any, any>('/client/bank/get_public_bank', data)

//保存转账银行卡信息
export const saveTkBank = (data: any) => request.post<any, any>('/client/bank/save_tk_bank', data)

//获取审批案件信息
export const getBxfmInfo = (data: any) => request.post<any, any>('/client/approval/get_bxfm_info', data)

//发起审批
export const submitApproval = (data: any) => request.post<any, any>('/client/approval/submit_approval', data)

//获取历史交易记录
export const getHistoryRecord = (data: any) => request.post<any, any>('/client/log/get_history_record', data)

//获取案件文书附件类别
export const getBailAttCategory = (data: any) => request.post<any, any>('/client/attachment/get_bail_att_category', data)

//获取审批流程
export const getProcessFlow = (data: any) => request.post<any, any>('/client/approval/get_process_flow', data)

//获取详情页操作按钮
export const getButton = (data: any) => request.post<any, any>('/client/case/get_button', data)

//获取审批签章
export const getSignature = (data: any) => request.post<any, any>('/client/approval/get_signature', data)

//审批通过
export const tyPass = (data: any) => request.post<any, any>('/client/approval/pass', data)

//确认付款
export const confirmPayment = (data: any) => request.post<any, any>('/client/approval/confirm_payment', data)

//获取案件日志
export const get_case_log = (data: any) => request.post<any, any>('/client/log/get_case_log', data)

//审批退回发起人
export const return_to_applicant = (data: any) => request.post<any, any>('/client/approval/return_to_applicant', data)